package cn.net.sinodata.system.domain.bo;

import cn.net.sinodata.system.domain.PmTransChannel;
import cn.net.sinodata.common.mybatis.core.domain.BaseEntity;
import cn.net.sinodata.common.core.validate.AddGroup;
import cn.net.sinodata.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 渠道平台业务对象 pm_trans_channel
 *
 * @author yinliangyun
 * @date 2025-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmTransChannel.class, reverseConvertGenerate = false)
public class PmTransChannelBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 渠道编码
     */
    @NotBlank(message = "渠道编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transChannelCode;

    /**
     * 渠道名称
     */
    @NotBlank(message = "渠道名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transChannelName;

    /**
     * 渠道优先级（1-紧急、2-高、3-中、4-低）
     */
    @NotBlank(message = "渠道优先级（1-紧急、2-高、3-中、4-低）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transChannelPriority;

    /**
     * 报文模板类型（0-json，1-xml，2-imix）
     */
    @NotBlank(message = "报文模板类型（0-json，1-xml，2-imix）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String msgTemplateType;

    /**
     * 备注
     */
    private String transChannelRemark;

    /**
     * 渠道类型（1-接入渠道、2-交易渠道）
     */
    @NotBlank(message = "渠道类型（1-接入渠道、2-交易渠道）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transChannelType;

}
